package com.enzo.prms.common.exception.base;

public class BaseAppRuntimeException extends RuntimeException {
	
	private static final long serialVersionUID = 3093536302160546042L;
	private String errorCode;
	
	public BaseAppRuntimeException() {
		super();
	}
	
	public BaseAppRuntimeException(String errorCode, String message, Throwable cause) {
		this(message, cause);
		setErrorCode(errorCode);
	}

	public BaseAppRuntimeException(String message, Throwable cause) {
		super(message, cause);
	}

	public BaseAppRuntimeException(String message) {
		super(message);
	}

	public BaseAppRuntimeException(Throwable cause) {
		super(cause);
	}
	
	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

}
